Optimal. Leaf size=505 \[ -\frac {\sqrt {a+b} \left (3 a^2+4 b^2\right ) \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b^3 d \sqrt {\sec (c+d x)}}-\frac {3 a \sin (c+d x) \sqrt {\sec (c+d x)} \sqrt {a+b \cos (c+d x)}}{4 b^2 d}-\frac {(3 a-2 b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b^2 d \sqrt {\sec (c+d x)}}+\frac {3 (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b^2 d \sqrt {\sec (c+d x)}}+\frac {\sin (c+d x) \sqrt {a+b \cos (c+d x)}}{2 b d \sqrt {\sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.95, antiderivative size = 505, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 8, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {4222, 2793, 3061, 3053, 2809, 2998, 2816, 2994} \[ -\frac {\sqrt {a+b} \left (3 a^2+4 b^2\right ) \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b^3 d \sqrt {\sec (c+d x)}}-\frac {3 a \sin (c+d x) \sqrt {\sec (c+d x)} \sqrt {a+b \cos (c+d x)}}{4 b^2 d}-\frac {(3 a-2 b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b^2 d \sqrt {\sec (c+d x)}}+\frac {3 (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{4 b^2 d \sqrt {\sec (c+d x)}}+\frac {\sin (c+d x) \sqrt {a+b \cos (c+d x)}}{2 b d \sqrt {\sec (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2793
Rule 2809
Rule 2816
Rule 2994
Rule 2998
Rule 3053
Rule 3061
Rule 4222
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a+b \cos (c+d x)} \sec ^{\frac {5}{2}}(c+d x)} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\cos ^{\frac {5}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {\sqrt {a+b \cos (c+d x)} \sin (c+d x)}{2 b d \sqrt {\sec (c+d x)}}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {a}{2}+b \cos (c+d x)-\frac {3}{2} a \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx}{2 b}\\ &=\frac {\sqrt {a+b \cos (c+d x)} \sin (c+d x)}{2 b d \sqrt {\sec (c+d x)}}-\frac {3 a \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{4 b^2 d}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {3 a^2}{2}+a b \cos (c+d x)+\frac {1}{2} \left (3 a^2+4 b^2\right ) \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{4 b^2}\\ &=\frac {\sqrt {a+b \cos (c+d x)} \sin (c+d x)}{2 b d \sqrt {\sec (c+d x)}}-\frac {3 a \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{4 b^2 d}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {3 a^2}{2}+a b \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{4 b^2}+\frac {\left (\left (3 a^2+4 b^2\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {a+b \cos (c+d x)}} \, dx}{8 b^2}\\ &=-\frac {\sqrt {a+b} \left (3 a^2+4 b^2\right ) \sqrt {\cos (c+d x)} \csc (c+d x) \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{4 b^3 d \sqrt {\sec (c+d x)}}+\frac {\sqrt {a+b \cos (c+d x)} \sin (c+d x)}{2 b d \sqrt {\sec (c+d x)}}-\frac {3 a \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{4 b^2 d}+\frac {\left (3 a^2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{8 b^2}-\frac {\left (a (3 a-2 b) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx}{8 b^2}\\ &=\frac {3 (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{4 b^2 d \sqrt {\sec (c+d x)}}-\frac {(3 a-2 b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{4 b^2 d \sqrt {\sec (c+d x)}}-\frac {\sqrt {a+b} \left (3 a^2+4 b^2\right ) \sqrt {\cos (c+d x)} \csc (c+d x) \Pi \left (\frac {a+b}{b};\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{4 b^3 d \sqrt {\sec (c+d x)}}+\frac {\sqrt {a+b \cos (c+d x)} \sin (c+d x)}{2 b d \sqrt {\sec (c+d x)}}-\frac {3 a \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{4 b^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 18.92, size = 1153, normalized size = 2.28 \[ \frac {\sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (2 (c+d x))}{4 b d}-\frac {\sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{\tan ^2\left (\frac {1}{2} (c+d x)\right )+1}} \left (-3 a^2 \sqrt {\frac {a-b}{a+b}} \tan ^5\left (\frac {1}{2} (c+d x)\right )+3 a b \sqrt {\frac {a-b}{a+b}} \tan ^5\left (\frac {1}{2} (c+d x)\right )-6 a b \sqrt {\frac {a-b}{a+b}} \tan ^3\left (\frac {1}{2} (c+d x)\right )+6 i a^2 \Pi \left (\frac {a+b}{a-b};i \sinh ^{-1}\left (\sqrt {\frac {a-b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )\right )|-\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}} \tan ^2\left (\frac {1}{2} (c+d x)\right )+8 i b^2 \Pi \left (\frac {a+b}{a-b};i \sinh ^{-1}\left (\sqrt {\frac {a-b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )\right )|-\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}} \tan ^2\left (\frac {1}{2} (c+d x)\right )+3 a^2 \sqrt {\frac {a-b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )+3 a b \sqrt {\frac {a-b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )+3 i a (a-b) E\left (i \sinh ^{-1}\left (\sqrt {\frac {a-b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )\right )|-\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (\tan ^2\left (\frac {1}{2} (c+d x)\right )+1\right ) \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}}-2 i \left (3 a^2-b a+2 b^2\right ) F\left (i \sinh ^{-1}\left (\sqrt {\frac {a-b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )\right )|-\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \left (\tan ^2\left (\frac {1}{2} (c+d x)\right )+1\right ) \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}}+6 i a^2 \Pi \left (\frac {a+b}{a-b};i \sinh ^{-1}\left (\sqrt {\frac {a-b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )\right )|-\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}}+8 i b^2 \Pi \left (\frac {a+b}{a-b};i \sinh ^{-1}\left (\sqrt {\frac {a-b}{a+b}} \tan \left (\frac {1}{2} (c+d x)\right )\right )|-\frac {a+b}{a-b}\right ) \sqrt {1-\tan ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\frac {a \tan ^2\left (\frac {1}{2} (c+d x)\right )-b \tan ^2\left (\frac {1}{2} (c+d x)\right )+a+b}{a+b}}\right )}{4 b^2 \sqrt {\frac {a-b}{a+b}} d \left (\tan ^2\left (\frac {1}{2} (c+d x)\right )-1\right ) \sqrt {\frac {\tan ^2\left (\frac {1}{2} (c+d x)\right )+1}{1-\tan ^2\left (\frac {1}{2} (c+d x)\right )}} \left (b \left (\tan ^2\left (\frac {1}{2} (c+d x)\right )-1\right )-a \left (\tan ^2\left (\frac {1}{2} (c+d x)\right )+1\right )\right )} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {b \cos \left (d x + c\right ) + a} \sec \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.28, size = 1248, normalized size = 2.47 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {b \cos \left (d x + c\right ) + a} \sec \left (d x + c\right )^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\sqrt {a+b\,\cos \left (c+d\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________